package com.skytech.tax.customsdatawarehouse.singlewindow.taxhandle.domain.entity;

import com.alibaba.fastjson.JSONObject;
import org.joda.time.DateTime;

public class GuaranteeMoney {

    private String grtInfoSeqNo;      //保证金编号
    private String guaId;             //保金/函文号
    private String data;              //保证金数据
    private String socialCreditCode;  //企业社会信用代码
    private String genDateStr;        //保证金生成时间
    private String payType;           //支付类型：0-未支付 1-已支付 2-支付中
    private String storageTime;       //入库时间

    public GuaranteeMoney() {
    }

    public GuaranteeMoney(String socialCreditCode, String payType, JSONObject data) {
        this.socialCreditCode = socialCreditCode;
        this.payType = payType;
        this.data = data.toJSONString();
        this.grtInfoSeqNo = data.getString("grtInfoSeqNo");
        this.guaId = data.getString("guaId");
        this.genDateStr = data.getString("genDateStr");
        this.storageTime = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }

    public String getGrtInfoSeqNo() {
        return grtInfoSeqNo;
    }

    public void setGrtInfoSeqNo(String grtInfoSeqNo) {
        this.grtInfoSeqNo = grtInfoSeqNo;
    }

    public String getGuaId() {
        return guaId;
    }

    public void setGuaId(String guaId) {
        this.guaId = guaId;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }

    public String getGenDateStr() {
        return genDateStr;
    }

    public void setGenDateStr(String genDateStr) {
        this.genDateStr = genDateStr;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(String storageTime) {
        this.storageTime = storageTime;
    }
}
